package com.woniu.order.controller;

import com.woniu.common.utils.ResponseData;
import com.woniu.order.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PaymentController {
    @Autowired
    private PaymentService paymentServicec;
    @GetMapping("/selectPayment")
    public ResponseData<?> selectPayment(){
        return new ResponseData<>().success(paymentServicec.list());
    }
}
